﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/Main.Master" AutoEventWireup="true" CodeBehind="coupons_list.aspx.cs" Inherits="Web.Solist.coupons_list" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>优惠券搜索 -- 菠萝菠萝蜜网|5151feel.com</title>
<link type="text/css" rel="stylesheet" href="css/sosuo.css" />
<SCRIPT type=text/javascript>
    function page_link(href) {
        document.forms[0].action = href;
        document.forms[0].submit();
        return false;
    }
    function open1(couponid) {
        var win = window.open("../coupon/print.do?id=" + couponid, "win", "height=330,width=554");
    }
</SCRIPT>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <DIV id=er_midone>您现在所在位置：<A href="#">菠萝菠萝蜜网</A> &gt; 优惠卷列表</DIV>
<DIV id=er_midtwo><!--左边列表开始-->
<DIV class=left>
<DIV class=listop><SPAN></SPAN> 
</DIV><!--列表主体部分开始-->
<DIV class=listmid><!--搜索控件开始-->
<DIV class=serch>
<FORM method="get" name=searchForm action="/solist/coupons_list.aspx">
分类： <select  id="ddlCorpType" name="tid" >
	<option selected="selected" value="0">请选择</option>
	<option value="1">餐饮美食</option>
	<option value="2">夜场酒吧</option>
	<option value="3">娱乐休闲</option>
	<option value="4">旅游度假</option>
	<option value="5">时尚购物</option>
</select> 
<INPUT class=input2 size=30 name="key">
 <INPUT class=pic src="images/soso.jpg" width=59 height=25 onclick="page_link('/solist/coupons_list.aspx')"  type="image" name=search> 
</FORM></DIV><!--搜索控件结束--><!--商家排队开始-->
<form runat="server" id="frmCorp">
  <pan:SmartGridView ID="gdvCorpList" runat="server"  AllowPaging="True" 
        AllowSorting="True"  AutoGenerateColumns="False"  BorderWidth="0px" 
      Width="435px"    DataKeyNames="CorpID"  ShowHeader="False"
         BorderStyle="None" CellPadding="0" GridLines="Vertical" 
        DataSourceID="ObjectDataSource1" >
        <Columns>
<asp:TemplateField>
<ItemTemplate>
            <DIV class=tv_c>
            <DIV class=da>
            <DIV class=ico><IMG src='<%#Eval("TypeID","/images/solist/tu{0}.jpg") %>' width="19" height="22"> </DIV>
            <DIV class=date><%# Eval("CreateOn", "{0:yyyy-MM-dd}")%></DIV></DIV>
            <DIV class=cu>
            <DIV class=couponImg onMouseOver="this.className='couponImg_active'"onmouseout="this.className='couponImg'">
            <A href="#" target=_blank><IMG border=0 src='<%#Eval("ImageSrc") %>' width=150 height=60></A><SPAN></SPAN> 
            <DIV class=coupon_info>
            <DIV class=c_top></DIV>
            <DIV class=c_mid>
            <DIV class=tt>
            <P><FONT color=#ff0000>使用细则：</FONT></P>
            <P>
            <P><%# Eval("Desc")%></P>
            <P></P>
            <P class=bl>有效期：<FONT color=#ff0000><%# Eval("BeginDate","{0:yyyy-MM-dd}") %> </FONT> 至 <FONT color=#ff0000><%# Eval("EndDate","{0:yyyy-MM-dd}") %> </FONT></P>
            <P class=bl>电话：<%# Eval("Telphone")%></P></DIV></DIV>
            <DIV class=c_bt></DIV></DIV></DIV></DIV>
            <DIV class=txt>
            <P class=ph><FONT color=#ff0000>[人气]：<%# Eval("Hits") %> </FONT></P>
            <P class=ph>
            <H1><A href="#" 
            target=_blank><%# Eval("Title") %></A></H1>
            <P></P>
            <P class=ph>
            <H2>分类：</H2><%# Web.AppCode.Sys_Common.GetSys_CorpType(Eval("TypeID").ToString())%>
            <P></P>
            <P class=ph>
            <H2>地址：</H2><%# Eval("Address") %>
            <P></P>
            <P class=ph>
            <H3>倒计时：</H3>还剩 <SPAN><%# Math.Round((Convert.ToDateTime(Eval("EndDate")) - DateTime.Now).TotalDays)%></SPAN> 天&nbsp;&nbsp;
             <A class=font_c3 href="javascript:open1(267);">打印优惠券</A> 
            <P></P></DIV></DIV>
         </ItemTemplate>
        </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
        <div style='text-align:left;margin-left:20px;line-height:20px;margin-bottom:10px;'>
		   <p style='color:#FF4E00;font-size:14px;font-weight:bold;'> 抱歉！没有搜索到相关信息 ！<br /><br /></p>
			可能的原因有：<br />
			1、条件不正确<br />
			2、没有满足搜索条件的信息。<br /></div>
        
        </EmptyDataTemplate>
        <CustomPagerSettings PagingMode="Default" TextFormat="<font size='2px'> 每页{0}条/共{1}条  第{2}页/共{3}页</font>   " />
        <PagerSettings Position="TopAndBottom" PageButtonCount="13" FirstPageText="首页" PreviousPageText="上一页"
            NextPageText="下一页" LastPageText="末页" />
    </pan:SmartGridView>	
  <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
      OldValuesParameterFormatString="original_{0}" SelectMethod="So" 
      TypeName="Controller.CouponShow">
      <SelectParameters>
          <asp:CookieParameter CookieName="citycode" Name="areaID" Type="String" />
          <asp:QueryStringParameter Name="typeid" QueryStringField="tid" Type="String" />
          <asp:QueryStringParameter DefaultValue="" Name="key" QueryStringField="key" 
              Type="String" />
      </SelectParameters>
  </asp:ObjectDataSource>
</form>  
    
<!--商家排队结束--><!--分页开始-->
<!--分页结束--></DIV><!--列表主体部分结束-->
<DIV class=listbt></DIV></DIV><!--左边列表结束-->
<DIV class=right2><IFRAME height=1175 marginHeight=0 
src="right_iframe.aspx" frameBorder=0 width=505 marginWidth=0 
scrolling=no></IFRAME></DIV></DIV>
</asp:Content>
